<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@page import="java.util.*;"%>

<%
	Calendar cal = new GregorianCalendar();
	int month = cal.get(Calendar.MONTH);
	int year = cal.get(Calendar.YEAR);
	int day = cal.get(Calendar.DAY_OF_MONTH);
	//System.out.println("Current date : " 
	//+ day + "/" + (month + 1) + "/" + year);
%>
<div>
<form>
<fieldset><legend>Select Student</legend>
<table cellpadding="5px" cellspacing="10px">
	<tr>
		<td><label> Select Class:</label></td>
		<td><select name="c" id="c">
			<option value="select">Select Class</option>
			<c:forEach var="c" items="${requestScope.classes}">
				<option value="${c}">${c}</option>
			</c:forEach>
		</select></td>
		<td></td>
	<tr>
		<td><label> Select Section:</label></td>
		<td><select id="s" name="s">
			<option value="select">Select Section</option>
			<c:forEach var="s" items="${requestScope.sections}">
				<option value="${s}">${s}</option>
			</c:forEach>
		</select></td>
		<td></td>
	</tr>
	<tr>
		<td><label> Select Student:</label></td>
		<td><select id="stu" name="stu">
			<option value="select">Select Student</option>
			<c:forEach var="stu" items="${requestScope.studentList}">
				<option value="${stu}">${stu}</option>
			</c:forEach>
		</select></td>
		<td></td>
	</tr>
	<tr>
		<td></td>
		<td><input type="button" value="Make Report Card"
			onclick="showReportCard()" /></td>
	</tr>
</table>
</fieldset>
</form>
</div>
<div id="reportCard" style="visibility: hidden;">
<form>
<fieldset><legend>Report Card Entry</legend>
<table cellpadding="10px" cellspacing="80px"
	style="border-collapse: collapse">
	<tr style="background-color: rgb(185, 201, 254)">
		<th rowspan="1">Subject Code</th>
		<th rowspan="1">Subject Name</th>
		<th rowspan="1" colspan="3">Marks</th>
		<th>Grade</th>
	</tr>
	<tr style="background-color: rgb(185, 201, 254)">
		<th></th>
		<th></th>
		<th>Theory</th>
		<th>Practical</th>
		<th>Total</th>
		<th></th>

	</tr>
	<tbody style="background-color: rgb(208, 218, 253)">
		<tr>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
		</tr>
		<tr>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
		</tr>
		<tr>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
		</tr>
		<tr>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
		</tr>
		<tr>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="10"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
			<td><input type="text" size="8"></td>
		</tr>
		<tr>
			<td>Remarks</td>
			<td colspan="3"><textarea rows="5" cols="47"></textarea></td>
			<td>Result:</td>
			<td><select>
				<option value="select">Select</option>
				<option value="pass">Pass</option>
				<option value="fail">Fail</option>
			</select></td>

		</tr>
		<tr>
			<td>Publish By:</td>
			<td colspan="2"><textarea rows="3" cols="30" disabled="disabled"
				style="text-align: left">
			Admin(School Management)
			</textarea></td>
			<td></td>
			<td>Division:</td>
			<td><select>
				<option value="select">Select</option>
				<option value="pass">First</option>
				<option value="fail">Second</option>
				<option value="fail">Third</option>
			</select></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="button" value="Publish" /></td>
			<td></td>
			<td></td>
			<td>Date:</td>
			<td colspan="2"><%=year + "-" + (month + 1) + "-" + day%></td>
		</tr>
	</tbody>
</table>
</fieldset>
</form>
</div>